package com.heima.article.controller.v1;

import com.heima.article.service.ApArticleBehaviorService;
import com.heima.model.article.dto.CollectionBehaviorDto;
import com.heima.model.behavior.dto.ApArticleRelationDto;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api("收藏Api行为")
@RestController
@RequestMapping("/api/v1/collection_behavior")
public class ApArticleBehaviorController {
    @Autowired
    private ApArticleBehaviorService apArticleBehaviorService;
    @PostMapping
    @ApiOperation("收藏")
    public ResponseResult colection(@RequestBody CollectionBehaviorDto dto){
        return this.apArticleBehaviorService.colection(dto);

    }
}
